home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
stats
/
nonlin31.arj
/
LINEAR.NLR
< prev
next >
Wrap
Text File
|
1994-01-26
|
1KB
|
59 lines
Title "Linear equation: y = p0 + p1*x";
Variables x,y; // Two variables: x and y
Parameters p0,p1; // Two parameters to be estimated: p0 and p1
Function y = p0 + p1*x; // Model of the function
Plot residual,grid; // Plot the function and the data values
nplot grid;
Data;
1 6.3574
1.14286 7.23763
1.28571 7.32006
1.42857 7.85714
1.57143 7.6038
1.71429 8.80617
1.85714 8.67594
2 8.7444
2.14286 10.1437
2.28571 9.50251
2.42857 10.2613
2.57143 9.42271
2.71429 9.9718
2.85714 11.415
3 12.0142
3.14286 11.2654
3.28571 12.717
3.42857 12.9053
3.57143 12.937
3.71429 12.2695
3.85714 12.4371
4 13.2704
4.14286 14.3539
4.28571 12.6296
4.42857 13.2807
4.57143 13.8091
4.71429 14.2006
4.85714 15.3499
5 15.654
5.14286 16.4933
5.28571 15.4064
5.42857 16.5739
5.57143 17.0178
5.71429 16.5534
5.85714 17.9478
6 18.4008
6.14286 17.8631
6.28571 16.8651
6.42857 16.1964
6.57143 19.5725
6.71429 19.1768
6.85714 19.8783
7 18.3236
7.14286 18.6416
7.28571 20.2486
7.42857 20.5085
7.57143 18.6966
7.71429 21.2907
7.85714 19.691
8 22.5456